package sfs

const (
	Null uint8 = iota
	Bool
	Byte
	Short
	Int
	Long
	Float
	Double
	UtfString
	BoolArray
	ByteArray
	ShortArray
	IntArray
	LongArray
	FloatArray
	DoubleArray
	UtfStringArray
	SfsArray
	SfsObject
	Class
	Text
)

const (
	ControllId = "c"
	ActionId   = "a"
	ParamId    = "p"
	UserId     = "u"
	CmdKey     = "c"
	RoomKey    = "r"

	KeySessionToken      = "tk"
	KeyApi               = "api"
	KeyCompressThreshold = "ct"
	KeyReconnectionToken = "rt"
	KeyClientType        = "cl"
	KeyMaxMessageSize    = "ms"

	KeyReconnectionSeconds = "rs"
	KeyRoomList            = "rl"
	KeyId                  = "id"
	KeyPrivilegeId         = "pi"

	KeyUserName   = "un"
	KeyZoneName   = "zn"
	KeyCode       = "code"
	KeyBetId      = "betId"
	KeyPlatform   = "platform"
	KeyToken      = "token"
	KeySessToken  = "sessionToken"
	KeyCurrency   = "currency"
	KeyLang       = "lang"
	KeyDeviceInfo = "deviceInfo"
	KeyUserAgent  = "userAgent"
	KeyDeviceType = "deviceType"
	KeyVersion    = "version"
)

const (
	CompressionThreshold int = 1024
	MaxMessageSize       int = 500000
	ShortByteSize        int = 2
	IntByteSize          int = 4
)

const (
	KeyErrorCode    = "ec"
	KeyErrorParams  = "ep"
	KeyErrorMessage = "errorMessage"
)
